package com.qf.mapper;


import com.qf.pojo.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface AccountMapper {

    @Select("select * from account")
    List<Account> findAll();

    @Update("update account set money=money+#{money} where name=#{name}")
    int updateMoneyByName(@Param("name") String name, @Param("money") Double money);
}
